﻿namespace ZyGame.UI
{
    [UIOptions("Resources/Toast", UIOptions.UIDepth.Toast)]
    internal class Toast : UIWindow
    {
        public override void Enable()
        {
            base.Enable();
            Client.Tools.Wait(4, () => { Client.Window.CloseView<Toast>(); });
        }

        public void SetString(string msg)
        {
            this.SetText("Text (TMP)", msg);
            this.SetText("Text", msg);
        }
    }
}
